﻿
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Text;

namespace ZFY.Core
{
    public class ZFYException : Exception
    {
        public int StatusCode { get; set; } 

        public ZFYException(string message,int statusCode = StatusCodes.Status400BadRequest) : base(message) {

            StatusCode = statusCode;
        }
    }
}
